package com.dbz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * 产品类型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("producttype")
public class ProductType {
    @TableId(value = "protypeid",type = IdType.AUTO)
    private  Integer id;
    @TableField(value = "protypename")
    private  String text;//类型名称
    @TableField(value = "protypefuid")//父亲id
    private  Integer protypefuid;
    @TableField(exist = false)
    private Set<ProductType> children;

}
